package com.cyl.magic.service;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.ssssssss.magicapi.core.service.MagicAPIService;
import org.ssssssss.magicapi.modules.db.model.PageResult;

import com.ruoyi.common.utils.SecurityUtils;

/**
 * 数据导出管理Service业务层处理
 *
 *
 * @author zcc
 */
@Service
public class MyMagicService {
	 
	

    @Autowired
    private MagicAPIService magicAPIService;

    public PageResult<LinkedHashMap<String, Object>> page(String service) {
	    return page(service, new HashMap<String, Object>());
    }
    
    
    public PageResult<LinkedHashMap<String, Object>> page(String service,Map<String, Object> params) {
		if(params  == null) {
			params = new HashMap<String, Object>();
		}
		org.ssssssss.magicapi.modules.db.model.PageResult<LinkedHashMap<String, Object>> pageInfo = magicAPIService.execute("POST", service, params);
	    return pageInfo;
    }
   
    
    
}
